set(src_dirs
            KEY
            LED
            IIC
            XL9555
            AT24CXX
            LCD
            RTC
            AP3216
            QMI8658A
			WiFi)

set(include_dirs
            KEY
            LED
            IIC
            XL9555
            AT24CXX
            LCD
            RTC
            AP3216
            QMI8658A
			WiFi)

set(requires
            driver
            newlib
            esp_lcd
            esp_wifi
            nvs_flash
            wpa_supplicant)

idf_component_register(SRC_DIRS ${src_dirs} INCLUDE_DIRS ${include_dirs} REQUIRES ${requires})

component_compile_options(-ffast-math -O3 -Wno-error=format=-Wno-format)